import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { EnumProfitUnLockHome_Status, EnumProfitUnLockHome_Type } from './profitUnLockHome.enum';

@Entity('profit_unlock_home')
export class ProfitUnLockHome {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'video_id' })
  video_id: number;

  @Column({ name: 'use_wx_user' })
  use_wx_user: string;

  @Column({ name: 'use_duration' })
  use_duration: number;

  @Column({ name: 'sum_duration' })
  sum_duration: number;

  @Column({ name: 'status' })
  status: EnumProfitUnLockHome_Status;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'update_time' })
  update_time: Date;

  @Column({ name: 'unit_price' })
  unit_price: number;

  @Column({ name: 'service_charge' })
  service_charge: number;

  @Column({ name: 'type' })
  type: EnumProfitUnLockHome_Type;

  @Column({ name: 'reject_reason' })
  reject_reason: number;
}
